<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <p>msg:{{msg}}</p>
        <hr/>
        <h5>未完成的任务</h5>
        <ul >
            <template v-for="item in todolist">
                <li  v-if="!item.isComplete">
                    <p>{{item.desc}}</p>
                </li>
            </template>
        </ul>
    </div>
</body>
</html>
<script src="./js/vue.global.js"></script>
<script>

     let app = Vue.createApp({
        data(){
            return {
                msg:"hi",
                todolist:[
                    {
                        desc:"写html",
                        isComplete:false
                    },
                    {
                        desc:"写css",
                        isComplete:true
                    },
                    {
                        desc:"写js",
                        isComplete:false
                    }
                ]
            }
        }
    });

    app.mount("#app");

  
    



</script>